class Student{
    private String sNo;          //ʵ
    private String sName;       //ʵ
    static int countOfStudent;    //
    public Student(String num, String name) {
        sNo=num;
        sName= name;
        countOfStudent+=1;   //¼ĸ
}
}
public class StudentTest{
public static void main(String args[]){
	  Student stu1=new Student("B0851101","LiYing");
	  Student stu2=new Student("B0851103","WangJing");
	  System.out.println(stu1. countOfStudent);
	  System.out.println(stu2. countOfStudent);
} 
}
